import * as types from '../actionTypes/todos.js'
export const TODOs_LIST = (payload) =>{
  return {type:'renderTodsList',payload}
}
//添加任务
export const ADD_TODOS = (payload)=> {
  return  { 
    type:types.ADD_TODO,
    payload
  }
}
//删除任务
export const delTodo = id => {
  return {
    type: types.DEL_TODO,
    payload: id
  }
}